<?php
/**
 * Created by PhpStorm.
 * User: ysk <yanshuaike171211@credithc.com>
 * Date: 2021/6/18
 * Time: 16:04
 */

namespace  api\modules\v1\test\actions\Ping;

use api\base\BaseApiAction;


/**
 * @SWG\Definition(
 *    definition="test.PingResponse",
 *    required={"pong"},
 *    @SWG\Property(
 *        property="pong",
 *        type="string",
 *        example="ok"
 *    )
 * ),
 * @SWG\Post(
 *      tags={"test"},
 *      path="/test/ping",
 *      summary="ping",description="ping",
 *      @SWG\Parameter(name="id",in="formData",description="ID",type="string",default="",required=true),
 *      @SWG\Response(
 *          response=200,
 *          description="OK",
 *          @SWG\Schema(
 *              @SWG\Property(
 *                  property="data",
 *                  ref="#/definitions/test.PingResponse"
 *              )
 *      )
 * )
 * )
 *
 *
 */

class PingAction extends BaseApiAction{

    public function run(){
        return 'pong';
    }




}
